import request from '@/utils/request'

// 登录方法
export function login(data) {
  return request({
    url: '/web/user/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
export function registerUser(data) {
  return request({
    url: '/web/user/register',
    method: 'post',
    data: data

  })
}

export function modifiuser(data) {
  return request({
    url: '/web/user/update',
    method: 'post',
    data: data
  })
}
export function updatepassword(data) {
  return request({
    url: '/web/user/updatepassword',
    method: 'post',
    data: data
  })
}
// 退出方法
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

// 获取验证码
export function getCodeImg() {
  return request({
    url: '/captchaImage',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}